import request from '@/utils/request'
import { ResponseType, TokenDataType } from '@/type/typedefine.ts'

export function loginRequest(data): Promise<ResponseType<TokenDataType>> {
  return request({
    url: '/user/login',
    method: 'post',
    data,
  })
}
